<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%>
<% firewall = grab_attributes(pwd)['firewall'] -%>
describe google_compute_firewalls(project: <%= gcp_project_id -%>) do
  its('count') { should be >= 1 }
  its('firewall_names') { should include <%= doc_generation ? "'#{firewall['name']}'" : "firewall['name']" -%> }
  its('firewall_directions') { should include 'INGRESS' }
end